home *** CD-ROM | disk | FTP | other *** search
/ Compute! Gazette 1984 August / 1984-08.d64 / cursor get_64 (.txt) < prev    next >
Commodore BASIC  |  2022-09-20  |  355b  |  11 lines

  1. 10 gosub1102:printa$;:goto10:rem this is the "host" program
  2. 1101 goto1109:rem get with cursor blink
  3. 1102 xl%=peek(211)
  4. 1103 ifxl%>39thenxl%=xl%-40:goto1103
  5. 1104 xl%=xl%+peek(214)*40+1024:xc=54272+xl%
  6. 1105 pokexc,peek(646):xo%=peek(xl%):xt%=xo%:xq%=128:ifxo%>127thenxq%=-xq%
  7. 1106 xt%=xt%+xq%:pokexl%,xt%:xq%=-xq%:forxr=1to60:rem changing 60 changes blink speed
  8. 1107 geta$:ifa$<>""thenpokexl%,xo%:return
  9. 1108 next xr:goto1106
  10. 1109 rem
  11.